<template>
	<div class="odetail" @click="odetailclsoe">
		<div class="odetail-content" @click="containerfalse">
			<div class="main">
				<div class="row">
					<label class="label">订单号：</label>
					<div class="right-con">
						<p>{{res_odetaildata.order_id}}</p>
					</div>
				</div>
				<div class="row">
					<label class="label">订单人数：</label>
					<div class="right-con">
						<p>{{res_odetaildata.people_number}}</p>
					</div>
				</div>
				<div class="row">
					<label class="label">订单价格：</label>
					<div class="right-con">
						<p>{{res_odetaildata.money}}元</p>
					</div>
				</div>
				<div class="row">
					<label class="label">下单日期：</label>
					<div class="right-con">
						<p>{{res_odetaildata.insert_time}}</p>
					</div>
				</div>
				
					<div class=" row">
						<label class="label">产品信息：</label>
						<div class="right-con">
							<div class="con">
								<p v-for="(i, key, index) in res_odetaildata.info" :key="index">{{i.info_name}}</p>
							</div>
						</div>
					</div>
					<div class=" row">
						<label class="label">车辆信息：</label>
						<div class="right-con">
							<div class="con">
								<p v-for="(i, key, index) in res_odetaildata.cart" :key="index">车牌号:{{i.cars_no}}</p>
							</div>
						</div>
					</div>
				<div class=" rowfor">
					<label class="label">客人名单：</label>
					<div class="right-con">
						<div class="con">
							<p v-for="(i, key, index) in res_odetaildata.people" :key="index" :label="i.name">{{i.name}}:{{i.card}}</p>
						</div>
					</div>
				</div>

			</div>
		</div>
	</div>
</template>

<script>
	import {
		mapGetters,
		mapActions
	} from 'vuex'
	export default {
		name: "odetail",
		data() {
			return {
				radio: '',
				infopeople: [],
				infoinfo: [],
			}
		},
		computed: {
			...mapGetters([
				'res_odetaildata'
			])
		},
		mounted() {
		},
		methods: {
			...mapActions({
				getres_odetaildata: 'getres_odetaildata'
			}),
			// 阻止事件冒泡
			containerfalse(e) {
				window.event ? window.event.cancelBubble = true : e.stopPropagation();
			},
			odetailclsoe() {
				var str = JSON.parse(JSON.stringify(this.res_odetaildata));
				str.show = false;
				this.getres_odetaildata(str)
			},
		},
		watch: {

		}
	}
</script>

<style scoped="scoped" lang="less">
	.odetail {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		background: rgba(0, 0, 0, 0.2);
		display: flex;
		justify-content: center;
		align-items: center;
		.odetail-content {
			width: 500px;
			border-radius: 5px;
			overflow: hidden;

			.main {
				width: 500px;
				display: flex;
				flex-wrap: wrap;
				background: #fff;
				padding: 5px 0;
				box-sizing: border-box;
				.row {
					width: 100%;
					display: flex;
					line-height: 30px;
					padding: 5px 30px;
					box-sizing: border-box;
					.right-con {
						width: 146px;
					}
					border-bottom: 1px solid #e6e1e1;
				}
				.label {
					width: 80px;
					text-align: right;
				}
				.right-con {
					display: flex;
					flex-wrap: wrap;
					text-align: left;
				}

				.rowfor {
					width: 100%;
					text-align: left;
					display: flex;
					padding: 5px 30px;
					box-sizing: border-box;
				}

				.btn {
					padding-left: 120px;
					padding-top: 50px;
					box-sizing: border-box;

					.el-button {
						width: 365px;
						height: 50px;
						color: #fff;
						background: #41c7db;
						border-radius: 10px;
						font-size: 16px;
						border: 1px solid #8B8B8B;
					}
				}


			}

		}
	}
</style>
